<template>
	<view>
		<view class="relative-border">
			<view v-for="(item,index) in dataList" :key="index" :class="{'invencurrent':(currentIndex === index)}">
				<view class="invent-listcon" @click="invent(index)">
					<view class="invent-oddnumber">
						{{item.title}}
					</view>
					<view class="invent-content">
						<view class="invent-content-top">
							{{item.sourcedocument}}
						</view>
						<view class="invent-content-top">
							{{item.abnormaltime}}
						</view>
						<view class="invent-content-top">
							{{item.faultphenomenon}}
						</view>
						<view class="invent-content-top">
							{{item.detaileddescription}}
						</view>
					</view>
				</view>
			</view>
		</view>

		<!-- 按钮 -->
		<view class="flexinven-button">
			<u-row gutter="16" class="flexinven-con">
				<u-col span="6">
					<view class="flexinven-flex">抢单/指派</view>
				</u-col>
				<u-col span="6">
					<view class="flexinven-flex" @click="leturn">返回</view>
				</u-col>
			</u-row>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList: [{
					title: '1、',
					sourcedocument: '来源单据: 工作申请',
					abnormaltime: '异常时间: 2016-09-11 15:23:12',
					faultphenomenon: '故障现象:',
					detaileddescription: '详细描述: ',
				}]
			}
		},
		methods: {
			leturn() {
				uni.navigateTo({
					url: 'pages/Workorder/Distribute/oddnumbers'
				});
			},
		}
	}
</script>

<style lang="less" scoped>
</style>
